﻿@model TumbaloSoft.Models.PersonaJuridica   
@{
    Layout = "~/Views/Shared/_VentasLayout.cshtml";
    ViewBag.Title = "Registro Cliente Juridica";
}



<script>
    // increase the default animation speed to exaggerate the effect
    //$.fx.speeds._default = 4000;
    $(function () {
        $("#dialog").dialog({
            autoOpen: false,
            resizable: false,
            height: 240,
            modal: true,
            buttons: {
                "Si": function () {
                    $("#form_1").submit();

                    $(this).dialog('close');
                },

                "No": function () {
                    $(this).dialog("close");
                }
            }
        });

        $("#open").click(function () {
            $("#dialog").dialog("open");
            return false;
        });


    });
</script>

    <!-- content -->
    <div class="body2">
        <div class="main">
            <section id="content">
                <div class="wrapper">
                   <article class="col0" >
                       <nav class="urbangreymenu">
                                <h3 class="headerbar">Mantenimiento Cliente</h3>
                                    <ul id="subMenu">
                                        <li><h5>@Html.ActionLink("Nuevo Cliente Jurídico","RegistrarPersonaJuridica")</h5></li>
                                        <li><h5>@Html.ActionLink("Ver Lista Clientes Jurídicos", "IndexPersonaJuridica")</h5></li>
                                    </ul>
                            </nav>
                       </article>

                      <article class="col1">
                       <!--FORMULARIO-->
                          <form id="form_1" method="post" style="height:100% ; width: 563px">
                            <div class="pad1" style="padding-bottom: 29px; width:412px">
                                <h2 class="pad_bot1 pad_top1">Registrar Cliente Jurídico</h2>
                                <h3 class="pad_bot1 pad_top1">Datos del Cliente: </h3>
                                
                            
                             
                                 <!--NOMBRE-->
                                <div class="row">
                                     <table style="width: 420px">
                                                    <tr>
                                
                                              <td style="width: 210px"><span>Razon Social:</span></td>
                                               <td style="width: 210px">     
                                      @Html.TextBoxFor(model => model.prRazonSocial, new { @Class ="input", maxlength = "30", minlength = "1",placeholder = "Maximo 30 caracteres aqui"}) 
                                       @Html.ValidationMessageFor(model => model.prRazonSocial) 
                                                   </td>
                                                        </tr>
                                         </table>
                                </div>
                             
                                  <!--RUC-->
                                            <div class="row">
                                                <table style="width: 420px">
                                                    <tr>
                                                        <td style="width: 210px"><span>RUC:</span></td>
                                                        <td style="width: 210px">                                                                                                          
                                                                @Html.TextBoxFor(model => model.prRuc, new { @Class="input",maxlength = "11", minlength = "8"})
                                                                @Html.ValidationMessageFor(model=> model.prRuc)                                                          
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>


                                    <!--DIRECCION-->
                                            <div class="row">
                                                <table style="width: 420px">
                                                    <tr>
                                                        <td style="width: 210px"><span>Direccion*:</span></td>
                                                        <td style="width: 210px"> 
                                                            @Html.TextBoxFor(model => model.prDireccion, new { @Class="input",maxlength = "50", placeholder = "Maximo 50 caracteres aqui"})
                                                            @Html.ValidationMessageFor(model=> model.prDireccion,null)
                                                        </td>
                                                    </tr>
                                                </table>  
                                            </div>
                                                          
                                      <!--E-MAIL-->
                                            <div class="row">
                                                <table style="width: 420px">
                                                    <tr>
                                                        <td style="width: 210px"><span>Email:</span></td>
                                                        <td style="width: 210px"> 
                                                            @Html.TextBoxFor(model => model.prEmail, new { @Class="input",placeholder="ejemplo@dominio.com"})
                                                            @Html.ValidationMessageFor(model=> model.prEmail)
                                                        </td>
                                                    </tr>
                                                </table>            
                                            </div> 
                                   <!--TELEFONO-->
                                            <div class="row">
                                                <table style="width: 420px">
                                                    <tr>
                                                        <td style="width: 210px"><span>Telefono:</span></td>
                                                        <td style="width: 210px"> 
                                                            @Html.TextBoxFor(model => model.prTelefono, new { @Class="input",maxlength = "9", minlength = "9"})
                                                            @Html.ValidationMessageFor(model=> model.prTelefono)
                                                        </td>
                                                    </tr>
                                                </table> 
                                            </div>
                                                             
                                <span>&nbsp;</span>
                                  <div id="dialog" title="Registrar Cliente">
                                 <p>Esta seguro que desea registrar los datos del cliente?</p>
                                  </div>
                                 <button id="open"  class="button">Guardar</button>
                                <a href="#" class="button" onclick="document.getElementById('form_1').reset()">Limpiar</a>
                                <a href="IndexPersonaJuridica" class="button" onclick="document.getElementById('form_1').cancel()">Cancelar</a>
                                  </div> 
                              
                            </form>
                   


                    </article>
                </div>

            </section>
        </div>
    </div>

    <!-- / content -->

    <script type="text/javascript"> Cufon.now(); </script>

</body>

